home *** CD-ROM | disk | FTP | other *** search
Wrap
property message, icon, alerttittel, movableon, yeslingo, nolingo on mouseUp me puppetSound(2, "click") myalertproplist = [#buttons: #YesNo, #message: message, #icon: icon, #title: alerttittel, #movable: movableon] myalertbox = new(xtra("MUI")) if objectp(myalertbox) then result = alert(myalertbox, myalertproplist) case result of 1: do(yeslingo) 2: do(nolingo) end case end if end on getPropertyDescriptionList me theprops = [:] c = "Type your question" f = #string d = "Continue ?" addProp(theprops, #message, [#comment: c, #format: f, #default: d]) c = "What kind of icon do you want?" f = #symbol r = [#stop, #note, #caution, #question] d = getAt(r, 1) typeprops = [#comment: c, #format: f, #range: r, #default: d] addProp(theprops, #icon, typeprops) c = "Window title?" f = #string d = "Alert" addProp(theprops, #alerttittel, [#comment: c, #format: f, #default: d]) c = "Movable?" f = #boolean d = 0 addProp(theprops, #movableon, [#comment: c, #format: f, #default: d]) c = "Lingo for Yes" f = #string d = EMPTY addProp(theprops, #yeslingo, [#comment: c, #format: f, #default: d]) c = "Lingo for No" f = #string d = EMPTY addProp(theprops, #nolingo, [#comment: c, #format: f, #default: d]) return theprops end on getBehaviorDescription return "The 'YNAlert' creates a alert box with a 'Yes' and a 'No' button. You choose the title, the message, what kind of icon you want and the Lingo for Yes and No." end